package com.xishu.bo;

import com.xishu.entity.shop.DiscountTicket;
import com.xishu.response.ResponseStatus;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

public class TicketResult implements Serializable {
    private static final long serialVersionUID = -378292393449293771L;

    @ApiModelProperty(value = "优惠卷")
    private String code;

    @ApiModelProperty(value = "状态")
    private Integer status = 0;

    @ApiModelProperty(value = "错误原因")
    private String msg;

    @ApiModelProperty(value = "错误原因英文")
    private String msg_en;

    @ApiModelProperty(value = "优惠卷对象")
    private DiscountTicket discountTicket;

    public TicketResult(String code, ResponseStatus responseStatus) {
        this.code = code;
        this.status = responseStatus.getStatus();
        this.msg = responseStatus.getMsg();
        this.msg_en = responseStatus.getMsg_en();
    }

    public TicketResult(String code, DiscountTicket discountTicket) {
        this.code = code;
        this.discountTicket = discountTicket;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public DiscountTicket getDiscountTicket() {
        return discountTicket;
    }

    public void setDiscountTicket(DiscountTicket discountTicket) {
        this.discountTicket = discountTicket;
    }

    public String getMsg_en() {
        return msg_en;
    }

    public void setMsg_en(String msg_en) {
        this.msg_en = msg_en;
    }
}
